# -*- coding: utf-8 -*-
# @Time    : 2018/8/15 13:37
# @Author  : 聂家利
# @Email   : 1073438012@qq.com
# @File    : _get_maya_main_windowsdow.py
# @Software: PyCharm
from Qt import QtWidgets
import maya.OpenMayaUI as omui
try:
    from shiboken2 import wrapInstance
except:
    from shiboken import wrapInstance


def _get_maya_main_windowsdow():
    pointer = omui.MQtUtil.mainWindow()
    return wrapInstance(long(pointer), QtWidgets.QWidget)